package com.group3.Feign;


import com.group3.config.FeignConfiguration;
import com.group3.fallback.user.UserServiceFallback;
import com.group3.model.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value="ls-service-user",
        configuration = FeignConfiguration.class,
       fallback = UserServiceFallback.class)
public interface UserServiceFeign {
    @RequestMapping("/user/{uid}")
   User getUserByUid(@PathVariable("uid") Integer uid);
}
